package cn.kow.kmall.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: lijun
 * @Description:
 * @Date: Created in 2019-08-05 15:16
 * @Modified By:
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ItemSkuDTO {

    private Long itemId;

    private Long skuId;

    private String itemNo;

    private String skuName;

    private String skuPic;

    private String sellingPrice;

    private Integer stockNum;

    private Short skuStatus;

    private List<SpecOption> specOptions;

    @Data
    public static class SpecOption implements Serializable {
        public SpecOption() {
        };

        /**
         * 选项id
         */
        private String spec;

        /**
         * 选项名称
         */
        private String option;
    }
}
